<script lang="ts" setup>
import { onShow } from '@dcloudio/uni-app'
import { storeToRefs } from 'pinia'
import { useAppStore } from '@/stores/app'

const { darkMode } = storeToRefs(useAppStore())

onShow(async () => {
  //
})
</script>

<template>
  <nut-config-provider :theme="darkMode ? 'dark' : ''">
    <slot />
  </nut-config-provider>
</template>

<style lang="scss">
  //
</style>
